package com.timmy.mvpdemo.presenter;

import com.timmy.mvpdemo.base.IMvpBaseView;

/**
 * Created by Timmy on 2017/12/11.
 */

public abstract class AbstractMvpPersenter<V extends IMvpBaseView> {
    private V mView;

    /**
     * 绑定V 层
     */
    public void attachMvpView(V view) {
        this.mView = view;
    }

    /**
     * 解除绑定V层
     */
    public void detachMvpView() {
        mView = null;
    }

    /**
     * 获取 V 层
     */
    public V getmMvpView() {
        return mView;
    }

}
